* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置整体页面高度 */
html,
body {
    height: 100%;
    /* background-image: url(../img/cat.jpg); */
    /* background-image: linear-gradient(-20deg, #dcb0ed 0%, #99c99c 100%); */
    /* background-image: linear-gradient(-225deg, #E3FDF5 0%, #FFE6FA 100%); */
    /* background-image: linear-gradient(-225deg, #DFFFCD 0%, #90F9C4 48%, #39F3BB 100%); */
    background-image: linear-gradient(to right, #e4afcb 0%, #b8cbb8 0%, #b8cbb8 0%, #e2c58b 30%, #c2ce9c 64%, #7edbdc 100%);
    /* background-image: linear-gradient(-225deg, #7085B6 0%, #87A7D9 50%, #DEF3F8 100%); */
    /* background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%); */
    /* background-image: linear-gradient(to right, #eea2a2 0%, #bbc1bf 19%, #57c6e1 42%, #b49fda 79%, #7ac5d8 100%); */
    /* background-image: linear-gradient(to right, #92fe9d 0%, #00c9ff 100%); */
    /* background-image: linear-gradient(to top, #37ec7f 0%, #2873bd 100%); */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* 上方导航栏 */
.nav {
    width: 100%;
    height: 50px;
    background-color: rgba(251, 251, 251, 0.0);
    color: black;

    display: flex;
    justify-content: left;
    align-items: center;
}

/* 导航栏中的图标 */
.nav img {
    width: 40px;
    height: 40px;
    margin-left: 30px;
    margin-right: 10px;
    border-radius: 50%;
}

/* 导航栏中的占位器 */
.nav .spacer {
    width: 70%;
}

/* 导航栏中的按钮 */
.nav a {
    color:black;
    text-decoration: none;
    padding: 0 10px;
}

/* 页面内容容器, 版心 */
.container {
    /* 使用 calc 计算高度 */
    height: calc(100% - 50px);
    /* 设置版心宽度 */
    width: 1000px;
    /* 水平居中 */
    margin: 0 auto;
    /* 使用弹性布局 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* 右侧部分, 用来放置正文 */
.container-right {
    height: 100%;
    /* 和左侧部分中间留出 5px 间隙 */
    width: 795px;
    /* 如果内容溢出就自动加上滚动条 */
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
    display: none;
}


.container-left {
    height: 100%;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 5px;
}

.card {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    display: flex;
    /* 使用 Flex 布局 */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card img {
    width: 120px;
    /* 调整头像尺寸 */
    height: 120px;
    border-radius: 50%;
    margin-bottom: 10px;
    /* 增加下方边距 */
}

.card h3 {
    padding: 5px;
    font-size: 16px;
    /* 调整标题字体大小 */
}

/* .attention-button {
    text-align: center;
    width: 100px;
    height: 35px;
    border: none;
    background-color: white;
    color: black;
    font-size: 16px;
    border-radius: 20px;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.my-attention-button {
    text-align: center;
    width: 100px;
    height: 35px;
    border: none;
    background-color: white;
    color: black;
    font-size: 16px;
    border-radius: 20px;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
} */

.button {
    text-align: center;
    width: 100px;
    height: 35px;
    border: none;
    background-color: white;
    color: black;
    font-size: 16px;
    border-radius: 20px;
    /* 使按钮变成椭圆形 */
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3px;
}


/* .attention-button:hover {
    background-color: #f0f0f0;
}

.my-attention-button:hover {
    background-color: #f0f0f0;
} */

.button:hover {
    background-color: #f0f0f0;
}

.card a {
    display: block;
    color: #007bff;
    /* 修改链接颜色 */
    text-decoration: none;
    padding: 5px;
    font-size: 14px;
    /* 调整链接字体大小 */
}

.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
  }
  
  .icon-counter,
  .icon-reading,
  .icon-comment {
    display: flex;
    align-items: center;
  }
  
  .icon-counter {
    background-image: url(../img/writing.png);
  }
  
  .icon-reading {
    background-image: url(../img/reading.png);
  }
  
  .icon-comment {
    background-image: url(../img/comment.png);
  }
  
  .counter,
  .reading-times,
  .comment-times {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
  }
  
  .counter .icon,
  .reading-times .icon,
  .comment-times .icon {
    margin-right: 5px;
  }
  
  .counter span,
  .reading-times span,
  .comment-times span {
    text-align: left;
    display: inline-block; /* 让文字和图标并排显示 */
    vertical-align: middle; /* 垂直居中对齐 */
  }